package com.longbo.leaf.portal.mapper;

import com.longbo.leaf.portal.model.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author longbo
 * @since 2021-02-01
 */
@Repository
public interface RoleMapper extends BaseMapper<Role> {
   Optional<Role>  findRoleById(Long id);
   List<Role> selectRoleByUserId(Long userId);
}
